# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=net-creds
pkgver=87.07a25e1
pkgrel=3
groups=('blackarch' 'blackarch-sniffer')
pkgdesc='Sniffs sensitive data from interface or pcap.'
arch=('any')
url='https://github.com/DanMcInerney/net-creds'
license=('GPL3')
depends=('python2' 'python2-wsgiref' 'python2-scapy' 'iproute2' 'net-tools'
         'scapy')
makedepends=('git')
source=("git+https://github.com/DanMcInerney/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"

  install -Dm 644 -t "$pkgdir/usr/share/$pkgname/" README.md
}

